
#include "ui_image/ui_image.h"
#ifdef __cplusplus
extern "C" {
#endif

//窗体对象
static lv_obj_t * wifi_win = NULL;

LV_FONT_DECLARE(myFont_font18)
//创建wifi界面
 void gui_wifi_win_create(lv_obj_t * parent)
{
	wifi_win = parent;//用来模拟窗体

	if(wifi_win == NULL ) return;


	//创建一个界面 - 全黑底
		//创建一个界面 - 全黑底
	lv_obj_t * main_img = lv_img_create(wifi_win);
	lv_img_set_src(main_img,&blackButtom);//设置图片源
    lv_obj_set_size(main_img, 240, 240); // 设置对象大小
    lv_obj_center(main_img); // 对象居中显示

	lv_obj_t * wifi_img = lv_img_create(main_img);
	lv_img_set_src(wifi_img,&wifiConOk);//设置图片源
    lv_obj_set_size(wifi_img, 120, 120); // 设置对象大小
    lv_obj_align(wifi_img, LV_ALIGN_CENTER,0, -24);

    lv_obj_t * wifi =lv_label_create(main_img);//创建label
    lv_label_set_recolor(wifi, true);
    lv_obj_align(wifi, LV_ALIGN_CENTER, 20, -102);
    lv_obj_set_size(wifi,80,20);//设定大小
    lv_label_set_text(wifi, "#00FF00 WIFI#");           //字体颜色
    lv_obj_set_style_text_font(wifi, &myFont_font18, 0);


    lv_obj_t* playerName =lv_label_create(main_img);//创建label
    lv_label_set_recolor(playerName, true);
    lv_obj_align(playerName, LV_ALIGN_CENTER, 5, 76);
    lv_obj_set_size(playerName,80,20);//设定大小
    lv_label_set_text(playerName, "#61DCFE 连接WIFI#");           //字体颜色
    lv_obj_set_style_text_font(playerName, &myFont_font18, 0);

}

//删除主界面
 void gui_wifi_win_dele(void)
 {
    if(wifi_win == NULL ) return;
    lv_obj_del(wifi_win);
    wifi_win =  NULL;
 }

 void gui_wifi_win_run(void)
{


}


#ifdef __cplusplus
}
#endif
